<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "welcome";
//backend routes
$route['dpc_enterprises'] = 'enterprises/login';
$route['authenticate'] = 'enterprises/authenticate';
$route['logOut'] = 'enterprises/logOut';
$route['addUser'] = 'enterprises/addUser';
$route['insertUser'] = 'enterprises/insertUser';
$route['editUserPerm'] = 'enterprises/editUserPerm';
$route['updatePermissions'] = 'enterprises/updatePermissions';
$route['editUserPermission/(:any)'] = 'enterprises/editUserPermission/$1';
$route['deleteUser/(:any)'] = 'enterprises/deleteUser/$1';
$route['CategoryCMS'] = 'enterprises/CategoryCMS';
$route['viewCategories'] = 'enterprises/getCategory';
$route['addCategory'] = 'enterprises/addCategory';
$route['editCategory/(:any)'] = 'enterprises/editCategory/$1';
$route['updateCategory'] = 'enterprises/updateCategory';
$route['StoreCMS'] = 'enterprises/StoreCMS';
$route['viewStores/(:any)'] = 'enterprises/getStore/$1';
$route['addStore'] = 'enterprises/addStore';
$route['editStore/(:any)'] = 'enterprises/editStore/$1';
$route['updateStore'] = 'enterprises/updateStore';
$route['CouponCMS'] = 'enterprises/CouponCMS';
$route['addCoupon'] = 'enterprises/addCoupon';
$route['viewCoupons/(:any)/(:any)'] = 'enterprises/getCoupon/$1/$2';
$route['reviewCoupons'] = 'enterprises/reviewCoupon';
$route['verifyCoupon/(:any)'] = 'enterprises/verifyCoupon/$1';
$route['declineCoupon/(:any)'] = 'enterprises/declineCoupon/$1';
$route['rejectCoupon/(:any)'] = 'enterprises/rejectCoupon/$1';
$route['reviewStores'] = 'enterprises/reviewStores';
$route['rejectStore'] = 'enterprises/rejectStore';
$route['verifyStore'] = 'enterprises/verifyStore';
$route['getStoresBy/(:any)'] = 'enterprises/getStoresBy/$1';
$route['DetailCMS'] = 'enterprises/DetailCMS';
$route['addDeal'] = 'enterprises/detailpage';
$route['viewDeals'] = 'enterprises/viewDeals';
$route['editDeal/(:any)'] = 'enterprises/getDeals/$1';
$route['updateDeal'] = 'enterprises/updateDeal';
$route['newsCMS'] = 'enterprises/ewsCMS';
$route['addnews'] = 'enterprises/addnews';
$route['editCoupon/(:any)'] = 'enterprises/editCoupon/$1';
$route['updateCoupon'] = 'enterprises/updateCoupon';
$route['showStoreViews'] = 'enterprises/showStoreViews';
$route['bannerCMS'] = 'enterprises/BannerCMS';
$route['addBanner'] = 'enterprises/addBanner';
$route['viewBanners/(:any)'] = 'enterprises/getBanner/$1';
$route['editBanner/(:any)'] = 'enterprises/editBanner/$1';
$route['updateBanner'] = 'enterprises/updateBanner';
$route['videoCMS'] = 'enterprises/VideoCMS';
$route['addVideo'] = 'enterprises/addVideo';
$route['viewVideos/(:any)'] = 'enterprises/getVideo/$1';
$route['editVideo/(:any)'] = 'enterprises/editVideo/$1';
$route['updateVideo'] = 'enterprises/updateVideo';
$route['shareCouponCMS'] = 'enterprises/shareCouponCMS';
$route['editSharedCoupon/(:any)'] = 'enterprises/editSharedCoupon/$1';
$route['showContactUs'] = 'enterprises/showContactUs';
$route['storeDeals'] = 'enterprises/storeDeals';
$route['viewstoreDeals'] = 'enterprises/viewStoreDeals';
$route['selectUrl/(:any)'] = 'enterprises/selectUrl/$1';
$route['addStoreDeals'] = 'enterprises/addStoreDeals';
$route['editStoreDeals/(:any)'] = 'enterprises/editStoreDeals/$1';
$route['updateStoreDeals'] = 'enterprises/updateStoreDeals';
$route['homeBannerCMS'] = 'enterprises/homeBannerCMS';
$route['addHomeBanner'] = 'enterprises/addHomeBanner';
$route['viewHomeBanners'] = 'enterprises/viewHomeBanners';
$route['editHomeBanner/(:any)'] = 'enterprises/editHomeBanners/$1';
$route['updateHomeBanner'] = 'enterprises/updateHomeBanner';

//frontend routes
$route['sitemap.php'] = 'welcome/generateSiteMap';
$route['not-found'] = 'welcome/notFound';
$route['top-discount-promo-codes'] = 'welcome/topCodes';
$route['top-deals'] = 'welcome/topDeals';
$route['about-us.html'] = 'welcome/aboutUs';
$route['privacy-policy.html'] = 'welcome/privacyPolicy';
$route['contact-us.html'] = 'welcome/contactUs';
$route['contact.php'] = 'welcome/contact';
$route['all-promo-codes'] = 'welcome/allStores';
$route['subscribeEmail'] = 'welcome/subscribeEmail';
$route['all-promo-codes/(:any)'] = 'welcome/alphaStores/$1';
$route['rateYourEndure/(:any)/(:any)'] = 'welcome/rateYourEndure/$1/$2';
$route['searchStore/(:any)'] = 'welcome/searchStore/$1';
$route['coupon.php/(:any)/(:any)'] = 'welcome/redirect/$1/$2';
$route['deals.php/(:any)/(:any)'] = 'welcome/dealsRedirect/$1/$2';
$route['loadCatCpn/(:any)/(:any)'] = 'welcome/loadCatCpn/$1/$2';
$route['(:any)-promo-codes'] = 'welcome/storePage/$1/$2';
$route['(:any)/(:any)'] = 'welcome/subCategoryPage/$1/$2';
$route['(:any)'] = 'welcome/categoryPage/$1';

$route['404_override'] = 'welcome/override';


/* End of file routes.php */
/* Location: ./application/config/routes.php */